home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / YICN23.ZIP / INCLUDE / XPAL.H < prev    next >
C/C++ Source or Header  |  1992-11-22  |  3KB  |  81 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XPAL - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XPAL_H_
  22. #define _XPAL_H_
  23.  
  24. #define PAL_ROTATE_DOWN 0
  25. #define PAL_ROTATE_UP   1
  26.  
  27.  
  28. extern "C" {
  29. /* FUNCTIONS =========================================================== */
  30.  
  31. extern void x_get_pal_raw(       /* Read DAC palette into raw buffer       */
  32.               BYTE far * pal,
  33.               WORD num_colrs,
  34.               WORD start_index);
  35.  
  36. extern void x_get_pal_struc(     /* Read DAC palette into annotated buffer */
  37.               BYTE far * pal,
  38.               WORD num_colrs,
  39.               WORD start_index);
  40.  
  41. extern void x_put_pal_raw(       /* Write DAC palette from raw buffer      */
  42.               BYTE far * pal,
  43.               WORD num_colrs,
  44.               WORD start_index);
  45.  
  46. extern void x_put_pal_struc(     /* Write DAC palette from annotated buffer*/
  47.               BYTE far * pal);
  48.  
  49. extern x_set_rgb(                /* Set the RGB components of a color index*/
  50.               BYTE color,
  51.               BYTE red_c,
  52.               BYTE green_c,
  53.               BYTE blue_c);
  54.  
  55. extern x_rot_pal_raw(           /* Rotate a raw palette buffer             */
  56.               BYTE far * pal,
  57.               WORD direction,
  58.               WORD num_colrs);
  59.  
  60. extern void x_rot_pal_struc(    /* Rotate an anottated palette buffer      */
  61.               BYTE far * pal,
  62.           WORD direction);
  63.  
  64. extern WORD x_cpcontrast_pal_struc( /* Copy and contrast adjust annotated  */
  65.               BYTE far *src_pal,    /*  palette buffer                     */
  66.               BYTE far *dest_pal,
  67.               BYTE Intensity);
  68.  
  69. extern void x_transpose_pal_struc( /* Write DAC palette from annotated type*/
  70.               BYTE far * pal,      /* buffer with a new offset             */
  71.               WORD StartColor);
  72.  
  73. extern  void x_put_contrast_pal_struc( /* Write DAC palette from annotated */
  74.               BYTE far * pal,     /* type buffer with specified intensity  */
  75.               BYTE  intensity);
  76.  
  77. }
  78. #endif
  79.  
  80.  
  81.